<template>
  <div class="audition208">
    <p>获取cookie:</p>
    <code class="code">
      req.headers.cookie
    </code>
    <p>设置cookie:</p>
    <code class="code">
      res.writeHead(200, {<br />
        <span class="indient">'Set-Cookie': 'myCookie=test', </span><br />
        <span class="indient">'Content-Type': 'text/plain'</span><br />
      })
    </code>
    <p>推荐阅读：<a href="https://www.cnblogs.com/csygl/p/14525406.html" target="_blank">node操作cookie</a></p>
  </div>
</template>

<script>
export default {
  name: 'Audition208'
}
</script>

<style>

</style>